<?php
/**
 * Author: Hancock
 * Email: 84622365@qq.com
 * Date: 7/18/2016
 * Des: 系统管理员
 */
defined('INHkMvc') or exit('Access Invalid!');

class App_member_rulesModel extends AppModel
{   
    public function getMemberRulesByType($type=0){
        $data=$this->field('content,title')->order('sort asc,add_time asc')->select(['type'=>$type,'status'=>1]);
        $member_rules=[];
        foreach ($data as $k => $v) {
            $member_rules['content'][$k] =$v['content']; 
            $member_rules['title']=$v['title'];   
        }  
        return $member_rules;
    }
}
